export const ViolationList = [{
  value: -1,
  label: 'All types'
}, {
  value: 'Explicit Nudity',
  label: 'Explicit Nudity',
  children: [
    {
      value: 'Nudity',
      label: 'Nudity'
    },
    {
      value: 'Graphic Male Nudity',
      label: 'Graphic Male Nudity'
    },
    {
      value: 'Graphic Female Nudity',
      label: 'Graphic Female Nudity'
    },
    {
      value: 'Sexual Activity',
      label: 'Sexual Activity'
    },
    {
      value: 'Illustrated Explicit Nudity',
      label: 'Illustrated Explicit Nudity'
    },
    {
      value: 'Adult Toys',
      label: 'Adult Toys'
    }
  ]
}, {
  value: 'Suggestive',
  label: 'Suggestive',
  children: [
    {
      value: 'Female Swimwear Or Underwear',
      label: 'Female Swimwear Or Underwear'
    },
    {
      value: 'Male Swimwear Or Underwear',
      label: 'Male Swimwear Or Underwear'
    },
    {
      value: 'Partial Nudity',
      label: 'Partial Nudity'
    },
    {
      value: 'Barechested Male',
      label: 'Barechested Male'
    },
    {
      value: 'Revealing Clothes',
      label: 'Revealing Clothes'
    },
    {
      value: 'Sexual Situations',
      label: 'Sexual Situations'
    }
  ]
}, {
  value: 'Violence',
  label: 'Violence',
  children: [
    {
      value: 'Graphic Violence Or Gore',
      label: 'Graphic Violence Or Gore'
    },
    {
      value: 'Physical Violence',
      label: 'Physical Violence'
    },
    {
      value: 'Weapon Violence',
      label: 'Weapon Violence'
    },
    {
      value: 'Weapons',
      label: 'Weapons'
    },
    {
      value: 'Self Injury',
      label: 'Self Injury'
    }
  ]
}, {
  value: 'Visually Disturbing',
  label: 'Visually Disturbing',
  children: [
    {
      value: 'Emaciated Bodies',
      label: 'Emaciated Bodies'
    },
    {
      value: 'Corpses',
      label: 'Corpses'
    },
    {
      value: 'Hanging',
      label: 'Hanging'
    },
    {
      value: 'Air Crash',
      label: 'Air Crash'
    },
    {
      value: 'Explosions And Blasts',
      label: 'Explosions And Blasts'
    }
  ]
}, {
  value: 'Rude Gestures',
  label: 'Rude Gestures',
  children: [
    {
      value: 'Middle Finger',
      label: 'Middle Finger'
    }
  ]
}, {
  value: 'Drugs',
  label: 'Drugs',
  children: [
    {
      value: 'Drug Products',
      label: 'Drug Products'
    },
    {
      value: 'Drug Use',
      label: 'Drug Use'
    },
    {
      value: 'Pills',
      label: 'Pills'
    },
    {
      value: 'Drug Paraphernalia',
      label: 'Drug Paraphernalia'
    }
  ]
}, {
  value: 'Tobacco',
  label: 'Tobacco',
  children: [
    {
      value: 'Tobacco Products',
      label: 'Tobacco Products'
    },
    {
      value: 'Smoking',
      label: 'Smoking'
    }
  ]
}, {
  value: 'Alcohol',
  label: 'Alcohol',
  children: [
    {
      value: 'Drinking',
      label: 'Drinking'
    },
    {
      value: 'Alcoholic Beverages',
      label: 'Alcoholic Beverages'
    }
  ]
}, {
  value: 'Gambling',
  label: 'Gambling',
  children: [
    {
      value: 'Gambling',
      label: 'Gambling'
    }
  ]
}, {
  value: 'Hate Symbols',
  label: 'Hate Symbols',
  children: [
    {
      value: 'Nazi Party',
      label: 'Nazi Party'
    },
    {
      value: 'White Supremacy',
      label: 'White Supremacy'
    },
    {
      value: 'Extremist',
      label: 'Extremist'
    }
  ]
}
]

export const DurationList = [
  {
    value: -1,
    label: 'All types'
  }, {
    value: 60,
    label: '1 hour'
  }, {
    value: 360,
    label: '6 hours'
  }, {
    value: 720,
    label: '12 hours'
  }, {
    value: 1440,
    label: '1 day'
  }, {
    value: 4320,
    label: '3 days'
  }, {
    value: 10080,
    label: '7 days'
  }, {
    value: 52034400,
    label: '99 years'
  }
]

export const errStrFunc = (status, name) => {
  // 处理结果:0=失败 1=成功 2=操作用户不是警察 3=目标用户不是本国主播 4=目标用户身份不允许处罚 5=处于警告期 6=处于监禁期 7=处于禁播期 8=处于禁言期 9=权限未开启
  const errStr = {
    '0': 'error',
    '1': 'success',
    '2': 'error',
    '3': 'error',
    '4': 'error',
    '5': 'error',
    '6': `your penalty is invalid because ${name} has been imprisoned`,
    '7': `your penalty is invalid because ${name} has been prohibited from LIVE`,
    '8': `your penalty is invalid because ${name} has been disabled from comments`,
    '9': 'error'
  }
  return errStr[status]
}

export const DurationListLimit = DurationList.filter(item => item.label !== 'All types')

export const ViolationListLimit = ViolationList.filter(item => item.label !== 'All types')

export const punishTypeList = [
  {
    label: '🚧Imprisonment',
    value: 2
  },
  {
    label: 'Disable live streaming permission',
    value: 3
  },
  {
    label: '🤐Disable permission to send direct messages and comments',
    value: 4
  }
]

